public class AgentXFrequencyModel extends OpponentModel
negotiationSession, opponentUtilitySpace| Constructor and Description |
|---|
AgentXFrequencyModel() |
| Modifier and Type | Method and Description |
|---|---|
double |
getBidEvaluation(Bid bid)
Calculates the utility to our opponent of the bid received as a parameter
using the current knowledge given by our opponent model
|
double |
getEvaluationOfValue(int issueIndex,
ValueDiscrete valueOfIssue)
Gives the normalized value rank of some value within a certain Issue
|
negotiator.boaframework.opponentmodel.agentx.DiscreteIssueProcessor |
getIssueProcessor()
Gives the discreteIssueProcessor for this opponent model
|
java.lang.String |
getName() |
UtilitySpace |
getOpponentUtilitySpace() |
negotiator.boaframework.opponentmodel.agentx.DiscreteValueProcessor |
getValueProcessor(IssueDiscrete i)
Returns a DiscreteValueProcessor, allowing the use of several methods
|
double |
getWeight(Issue issue)
Returns the weight of a particular issue in the domain.
|
void |
init(NegotiationSession negotiationSession,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
Creates an opponent model for the given utility space
|
void |
updateModel(Bid b,
double time)
Processes a bid, possibly changing value ranks for the internal opponent model.
|
cleanUp, getIssueWeights, init, isCleared, setOpponentUtilitySpace, setOpponentUtilitySpace, updateModelpublic void init(NegotiationSession negotiationSession, java.util.HashMap<java.lang.String,java.lang.Double> parameters) throws java.lang.Exception
init in class OpponentModelu - The utility spacejava.lang.Exceptionpublic negotiator.boaframework.opponentmodel.agentx.DiscreteValueProcessor getValueProcessor(IssueDiscrete i)
i - The issue for which a ValueProcessor is neededpublic negotiator.boaframework.opponentmodel.agentx.DiscreteIssueProcessor getIssueProcessor()
public void updateModel(Bid b, double time)
updateModel in class OpponentModelb - The bid done by the opponenttime - Time at which the bid was donepublic double getEvaluationOfValue(int issueIndex,
ValueDiscrete valueOfIssue)
issueIndex - The index of the issue. Same index as in the ArrayList provided by
utilitySpace.getDomain().getIssues()valueOfIssue - The value from that issue for which the normalized rank is requiredpublic double getBidEvaluation(Bid bid)
getBidEvaluation in class OpponentModelbid - public double getWeight(Issue issue)
OpponentModelgetWeight in class OpponentModelissue - from which the weight should be returnedpublic UtilitySpace getOpponentUtilitySpace()
getOpponentUtilitySpace in class OpponentModelpublic java.lang.String getName()
getName in class OpponentModel